/*
 * @Author: czy
 * @Date: 2021-07-10 14:16:09
 * @LastEditTime: 2021-07-12 21:57:26
 */
#include "../lib/environ.h"

/**
 * @description: Set the environment variable (the value is any pointer).
 * @param name  Name.
 * @param value Value.
 */
void setenv(char *name, void *value)
{
    unsigned int pointer = (unsigned int)value;
    environ.set(&environ, name, &pointer);
}

/**
 * @description: Get the environment variable (the value is any pointer).
 * @param name  Name.
 * @return Value.
 */
void *getenv(char *name)
{
    return (void *)(*(unsigned int *)environ.get(&environ, name));
}
